import request from '@utils/request'

// 查询打卡信息
export function getForm (data) {
  return request({
    url: '/positioning/getPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 查看打卡详情
export function getDetail (data) {
  return request({
    url: '/positioning/getDetailList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}


// 导出打卡信息
export function exportList (data) {
  return request({
    url: '/positioning/export?ids='+data,
    method: 'get',
    params: data,
    responseType: 'blob',
    headers: {
      // 'Content-Type': 'application/json',
      'Content-Type': 'application/x-www-form-urlencoded',

      'Authorization': window.localStorage.getItem('token'),
    }
  })
}
